/**
 * 
 */

/**
 * @author Janis Daubergs
 * 
 */
public class Transformer {
    public Ring transformFigure(Figures inpFigure) {
        Point x = inpFigure.getCenter();
        double area = inpFigure.area();
        double radius = Math.sqrt(area / Math.PI);
        Ring transRing = new Ring(radius, x);
        return (transRing);
    }
}
